package aplicacion.celular;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class AplicacionAndroidActivity extends TabActivity 
{
	
    private static final String TAG_SCHEDULED = null;
	private TabHost mTabHost;
    private Resources mResources;
    
    /** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) 
	{
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        mTabHost = getTabHost();
        mResources = getResources();  
 
        addTab1();
        addTab2();
        addTab3();
    }
	
	public void addTab1()
	{
		Intent intent = new Intent(this, Tab1.class);
		TabSpec spec = mTabHost.newTabSpec(TAG_SCHEDULED);
        spec.setIndicator(mResources.getString(R.string.name_alumno), mResources.getDrawable(R.drawable.alum));
        spec.setContent(intent);
        mTabHost.addTab(spec);
	}
	
	public void addTab2()
	{
		Intent intent = new Intent(this, Tab2.class);
		TabSpec spec = mTabHost.newTabSpec(TAG_SCHEDULED);
        spec.setIndicator(mResources.getString(R.string.name_ExAlumnos), mResources.getDrawable(R.drawable.exalum));
		spec.setContent(intent);
        mTabHost.addTab(spec);
	}
	
	public void addTab3()
	{
		Intent intent = new Intent(this, Tab3.class);
		TabSpec spec = mTabHost.newTabSpec(TAG_SCHEDULED);
        spec.setIndicator(mResources.getString(R.string.name_Eventos), mResources.getDrawable(R.drawable.calen));
		spec.setContent(intent);
        mTabHost.addTab(spec);
	}
}